package com.gljx.web.Entity;

import java.io.Serializable;


/**
 * 用户
* @author LiXiang
* @date 2017年9月22日 下午4:16:32 
*
 */
public class User implements Serializable{
	
	/**
	 * 为了防止重启服务器 用户端session信息不能对应
	 */
	private static final long serialVersionUID = 2230462557000426649L;

	private Integer id;

    private String fid;//eas用户id

    private String userName;//账户

    private String name;//姓名

    private String password;//密码

    private String oldPassword;//旧密码
    
    private Integer fisDelete;//是否删除 1是

    private Integer fisAdmin;//是否管理员 1是

    private String fcompanyid;//公司

    private String companyName;//公司名 数据库无此字段
    
    private String creatTime;

    private String updateTime;

    private String creatId;

    private String updateId;

    private String remark;//备注

    private Integer fisPower;//是否已授权

    private Integer ftype;//用户类型 系统用户=10,职员=20,客户=30,供应商=40,其他=50,认证管理员=60,审计管理员=70
    
    private Integer fisproject;//是否当前项目用户 否为空  数据库无此字段
    
    private String deptName;//部门
    
    private String deptId;//部门ID
    
    private String CompanyLongFnumber;//公司长fnumber
    
    private String fgroupName;
    /**
     * 用户名+用户ID 加密
    * @return
    * @author LiXiang  @date 2017年10月13日 上午9:14:30
     */
    public String getCredentialsSalt(){
    	return userName+id;
    }
    
    
	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}


	public String getCompanyLongFnumber() {
		return CompanyLongFnumber;
	}


	public void setCompanyLongFnumber(String companyLongFnumber) {
		CompanyLongFnumber = companyLongFnumber;
	}


	public String getDeptName() {
		return deptName;
	}


	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptId() {
		return deptId;
	}


	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}


	public Integer getFisproject() {
		return fisproject;
	}


	public void setFisproject(Integer fisproject) {
		this.fisproject = fisproject;
	}


	public String getCompanyName() {
		return companyName;
	}



	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}



	public Integer getFisPower() {
		return fisPower;
	}

	public void setFisPower(Integer fisPower) {
		this.fisPower = fisPower;
	}

	public Integer getFtype() {
		return ftype;
	}

	public void setFtype(Integer ftype) {
		this.ftype = ftype;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getFisDelete() {
		return fisDelete;
	}

	public void setFisDelete(Integer fisDelete) {
		this.fisDelete = fisDelete;
	}

	public Integer getFisAdmin() {
		return fisAdmin;
	}

	
	public String getFgroupName() {
		return fgroupName;
	}


	public void setFgroupName(String fgroupName) {
		this.fgroupName = fgroupName;
	}


	public void setFisAdmin(Integer fisAdmin) {
		this.fisAdmin = fisAdmin;
	}

	public String getFcompanyid() {
		return fcompanyid;
	}

	public void setFcompanyid(String fcompanyid) {
		this.fcompanyid = fcompanyid;
	}

	public String getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(String creatTime) {
		this.creatTime = creatTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreatId() {
		return creatId;
	}

	public void setCreatId(String creatId) {
		this.creatId = creatId;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
